package com.jkl.queryserver.Provider.DAO.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jkl.pojo.Relationship;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RelationshipMapper extends BaseMapper<Relationship> {
    public default List<Relationship> selectFriends(String email){
        return selectList(new QueryWrapper<Relationship>()
                .select("friendId","buildTime")
                .eq("userId",email));
    }
}
